import request from '@/utils/request'
// 获取首页头部分类数据
export const findAllCategory = () => {
  return request('/home/category/head', 'get')
}
// 一级类目
export const findTopCategory = (id) => {
  return request('/category', 'get', { id })
}
// 二级类目筛选
export const findSubCategoryFilter = (id) => {
  return request('/category/sub/filter', 'get', { id })
}
// 商品列表 临时
export const findSubCategoryGoods = (params) => {
  return request('/category/goods/temporary', 'post', params)
}
// 商品列表
export const findCategoryGoods = (data) => {
  return request('/category/goods', 'post', data)
}
